package com.example.practical_training_projects.service;

import com.example.practical_training_projects.entity.appointment;
import com.example.practical_training_projects.mapper.appointmentMapper;
import com.example.practical_training_projects.vo.userappointment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class appointmentServicelmpl implements appointmentService {
    @Autowired
    private appointmentMapper mapper;

    @Override
    public Integer insertYuyue(appointment appointment1) {
        return mapper.insertYuyue(appointment1);
    }

    @Override
    public List<userappointment> pcselect(Integer pc_uid) {
        return mapper.pcselect(pc_uid);
    }

    @Override
    public List<userappointment> userselectyuyue(Integer user_uid) {
        return mapper.userselectyuyue(user_uid);
    }

    @Override
    public List<appointment> admincheck() {
        return mapper.admincheck();
    }

    @Override
    public Integer deleteAppointment(Integer id) {
        return mapper.deleteAppointment(id);
    }
}
